package com.qwc.blog.common.utils;

import cn.hutool.core.lang.UUID;

/**
 * @author qwc
 * @Date 2021/10/26 10:19
 */
public class IdUtils {

    private IdUtils() {
        throw new IllegalStateException("Utility class");
    }

    /**
     * 获取随机UUID，使用性能更好的ThreadLocalRandom生成UUID
     *
     * @return 随机UUID
     */
    public static String fastUUID() {
        return UUID.fastUUID().toString();
    }
}
